/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.comut.crud.ejb.interfaces;

import com.comut.lib.exception.ObjectFoundException;
import com.comut.lib.exception.ObjectNotFoundException;
import com.comut.crud.pojo.group.Group;
import javax.jws.WebMethod;

/**
 *
 * @author asantos
 */
public interface IGroupAction {
    
    
    /**
     * Inserts Group on the database
     *
     * @param group the {@link Group} to be inserted
     * @return the inserted {@link Group}
     */
    @WebMethod
    public Group insertGroup(Group group) throws ObjectFoundException;

    /**
     * Deletes a Group from the database
     *
     * @param group the {@link Group} to be deleted
     */
    @WebMethod
    public void deleteGroup(Group group) throws ObjectNotFoundException;

    /**
     * Update a event on the database
     *
     * @param group the update {@link group}     * 
     */
    @WebMethod
    public void updateGroup(String group) throws ObjectNotFoundException;

    /**
     * Gets a Group from the database
     *
     * @param group the {@link Group} to be found
     * @return the {@link Group} found
     */
    @WebMethod
    public Group getGroup(Group group) throws ObjectNotFoundException;
    
}
